import request from '../utils/request'

// 登录
export function login() {
  return request({
    url: '/jwt/login',
    method: 'get',
    params: {
      username: _Glob.username,
      password: _Glob.password
    }
  })
}

//获取设备类型和地址
export function userAddrAndType() {
  return request({
    url: '/account/queryDevTypesAndAddress',
    method: 'get',
    params: {
      username: _Glob.username
    }
  })
}

//获取设备状态
export function selectAll(query) {
  return request({
    url: '/monitor/selectAll',
    method: 'post',
    params: query
  })
}







